package com.cleaningcloud.cld.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cleaningcloud.cld.mapper.CldRegularSubmitMapper;
import com.cleaningcloud.cld.domain.CldRegularSubmit;
import com.cleaningcloud.cld.service.ICldRegularSubmitService;

/**
 * 例会提交明细Service业务层处理
 * 
 * @author cleaningcloud
 * @date 2025-01-13
 */
@Service
public class CldRegularSubmitServiceImpl implements ICldRegularSubmitService 
{
    @Autowired
    private CldRegularSubmitMapper cldRegularSubmitMapper;

    /**
     * 查询例会提交明细
     * 
     * @param regularSubmitId 例会提交明细主键
     * @return 例会提交明细
     */
    @Override
    public CldRegularSubmit selectCldRegularSubmitByRegularSubmitId(Long regularSubmitId)
    {
        return cldRegularSubmitMapper.selectCldRegularSubmitByRegularSubmitId(regularSubmitId);
    }

    /**
     * 查询例会提交明细列表
     * 
     * @param cldRegularSubmit 例会提交明细
     * @return 例会提交明细
     */
    @Override
    public List<CldRegularSubmit> selectCldRegularSubmitList(CldRegularSubmit cldRegularSubmit)
    {
        return cldRegularSubmitMapper.selectCldRegularSubmitList(cldRegularSubmit);
    }

    /**
     * 新增例会提交明细
     * 
     * @param cldRegularSubmit 例会提交明细
     * @return 结果
     */
    @Override
    public int insertCldRegularSubmit(CldRegularSubmit cldRegularSubmit)
    {
        return cldRegularSubmitMapper.insertCldRegularSubmit(cldRegularSubmit);
    }

    /**
     * 修改例会提交明细
     * 
     * @param cldRegularSubmit 例会提交明细
     * @return 结果
     */
    @Override
    public int updateCldRegularSubmit(CldRegularSubmit cldRegularSubmit)
    {
        return cldRegularSubmitMapper.updateCldRegularSubmit(cldRegularSubmit);
    }

    /**
     * 批量删除例会提交明细
     * 
     * @param regularSubmitIds 需要删除的例会提交明细主键
     * @return 结果
     */
    @Override
    public int deleteCldRegularSubmitByRegularSubmitIds(Long[] regularSubmitIds)
    {
        return cldRegularSubmitMapper.deleteCldRegularSubmitByRegularSubmitIds(regularSubmitIds);
    }

    /**
     * 删除例会提交明细信息
     * 
     * @param regularSubmitId 例会提交明细主键
     * @return 结果
     */
    @Override
    public int deleteCldRegularSubmitByRegularSubmitId(Long regularSubmitId)
    {
        return cldRegularSubmitMapper.deleteCldRegularSubmitByRegularSubmitId(regularSubmitId);
    }
}
